package org.example.springioc01.bean;

import org.springframework.beans.factory.annotation.Autowired;

public class Animal {
    private String color;


    private Cat cat;


    @Autowired
    public void setCat( Cat cat){
        System.out.println("autowired");
        this.cat = cat;
    }
    public Animal(){
        System.out.println("构造器....");
    }

    private void initMethod01() {
        System.out.println("初始化...");
    }

    private void destroyMethod() {
        System.out.println("销毁....");
    }
}
